package com.qzw.service;


import com.qzw.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

public class UserService {
//@Resource(name="userDao")
    @Autowired
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void addUser() {

        System.out.println(" add user by userService");
        userDao.addUser();

    }


}
